<?php

namespace app\admin\controller\system;

use app\admin\controller\Base;
use think\Db;
use think\facade\Cache;
use think\facade\Session;
use app\common\library\Openssl;

/**
 * 菜单规则管理
 * Class RuleController
 * @package app\admin\controller\auth
 */
class User extends Base
{
    public function initialize()
    {
        parent::initialize();

    }

    /**
     * 主页面
     * @return mixed
     */
    public function index()
    {
        $data['id'] = substr(config('cache.prefix'), 1);
        $openssl = new Openssl();
        $data['expires_in']=time()+60*10;
        $data = $openssl->encrypt(json_encode($data));
        $this->assign('token', $data);
        return view();
    }

}